exports.login = async (ctx) => {
    await ctx.render('adminLogin', {
        title: '管理员登录',
    });
};

/**
 * 返回管理界面
 * @param ctx
 */
exports.manage = async (ctx) => {
    await ctx.render('admin', {
        title: '后台管理',
        onlineUserList:[
            {
                name:"小明",
                age:10,
                status:0
            },
            {
                name:"小王",
                age:11,
                status:1
            },
            {
                name:"小李",
                age:11,
                status:0
            },
            {
                name:"小鹿",
                age:20,
                status:1
            }
        ]
    });
};